#ifndef GFXTOWERBEAM_H
#define GFXTOWERBEAM_H

#include "gfxItem.h"
#include <QRectF>
#include <QPainter>

class GFXTowerBeam : public GFXItem
{
public:
   explicit GFXTowerBeam(ClientEntity *entity=0, QGraphicsItem *parent=0);
   GFXTowerBeam(const EntityBaseStats &stats, QGraphicsItem *parent=0);
   virtual ~GFXTowerBeam();
   QRectF boundingRect() const;
   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
   virtual void tick();
   static void doPaint(const QColor &color,
                       const qint32 size,
                       const bool showRange,
                       const bool blendRange,
                       QPainter& painter,
                       const qreal scale=1);

protected:
   QGraphicsRectItem *rectangle;
   qreal mAimDirection;
   qreal mRange;
};

#endif // TOWERBEAMITEM_H
